/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.snda.lidejia.xml2pojo.parser;

import com.snda.lidejia.xml2pojo.util.ParserArgumentChecker;
import org.dom4j.Node;

/**
 *
 * @author lidejia
 */
public class XMLStringParser implements XMLParser {

    public Object parse(Class<?> type, Node... nodes) {
        //
        ParserArgumentChecker.checkSingle(nodes);
        //
        Node node = nodes[0];
        String value = node.getText().trim();
        return value;
    }
}
